package com.hxzy.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.hxzy.domain.Contents;
import com.hxzy.repository.ContentRepository;

@Component
public class ContentService {
	
	@Autowired
	private ContentRepository contentRepository;
	
	public List<Contents> getContents(){
			
			return (List<Contents>) contentRepository.findAll();
		}
}
